package com.fastCms.business.frame.busi;

import com.fastCms.business.frame.exception.BusinessException;
import com.fastCms.business.frame.pojo.po.CloudRolePO;
import com.fastCms.business.frame.pojo.po.CloudRoleSavePO;
import com.fastCms.business.frame.pojo.vo.CloudRoleVO;
import com.fastCms.business.frame.pojo.vo.UserSimpleVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lsquan
 * @since 2019-03-11
 */
public interface CloudRoleManageService {


    /**
     * @Description 角色列表展现
     * @Date 2019/3/27 上午10:04 lsquan
     */
    List<CloudRoleVO> showRoles() throws BusinessException;

    /**
     * @Description 根据角色id删除
     * @Param [organizeCode]
     * @Date 2019/3/11 下午6:01 lsquan
     */
    boolean deleteRoleAndMenuReal(String roleId) throws BusinessException;


    /**
     * @Description 编辑（新增或修改）
     * @Param [organizeCode]
     * @Date 2019/3/11 下午6:01 lsquan
     */
    boolean saveOrUpdateRole(CloudRolePO cloudRolePO) throws BusinessException;

    /**
     * @Description //TODO
     * @Param [roleId]
     * @Date 2019/3/14 下午2:20 lsquan
     */
    List<UserSimpleVO> findUserListByRoleId(String roleId);


}
